package com.gzxx.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author MAX
 * @date 2020/8/13 10:19 上午
 */

@Data
@ApiModel(value = "编辑系统角色传输实体", description = "编辑系统角色传输实体")
public class SysRoleUpdateDto implements Serializable {

    private static final long serialVersionUID = -3053669888232163814L;

    @Min(value = 1, message = "角色id不能小于0")
    @NotNull(message = "角色id不能为空")
    @ApiModelProperty(value = "角色名称", example = "测试")
    private Long id;

    @NotEmpty(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称", example = "测试")
    private String roleName;

    @ApiModelProperty(value = "角色描述", example = "测试人员")
    private String roleDesc;

    @Min(value = 0, message = "角色状态不能小于0")
    @Max(value = 1, message = "角色状态不能大于0")
    @ApiModelProperty(value = "角色状态", example = "0")
    private Integer status;

    @ApiModelProperty(value = "角色关联菜单", example = "[1,2,3]")
    private List<Long> menuIds;
}
